package com.diaoyanbao.service;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
import java.util.TreeMap;

import org.apache.log4j.Logger;

import com.diaoyanbao.module.CSSModule;
import com.diaoyanbao.module.JSModule;

/**
 * 基础 service
 * 
 * @author dingxs
 */
public class BaseService {
    public static TreeMap<String, TreeMap<String, String>> fileInfo = new TreeMap<String, TreeMap<String, String>>();
    public static Properties configProp = null;
    protected static Logger logger = Logger.getLogger(BaseService.class);
    protected static JSModule jsModule = null;
    protected static CSSModule cssModule = null;

    protected BaseService() {
        if (configProp == null) {
            try {
                configProp = new Properties();
                InputStream inputStream = ClassLoader.getSystemResourceAsStream("config.properties");
                configProp.load(inputStream);
            } catch (IOException e) {
                // TODO Auto-generated catch block
                logger.error(e.getMessage());
            }
        }
    }
}
